/**
 * 工具类,用于产生一个不会被销毁的node
 * created by Five on 2018-11-5 12:13:53
 */

export default function PresistNode(nodeName: string): cc.Node {
    let node = new cc.Node();
    node.name = nodeName;
    cc.game.addPersistRootNode(node);
    return node;
}